package com.gray.dao;

import java.util.List;

import com.gray.dto.StayMessage;
import com.gray.pojo.Stay_Message;

public interface Stay_MessageMapper {
    int deleteByPrimaryKey(Short stayId);

    int insert(Stay_Message record);

    int insertSelective(Stay_Message record);

    Stay_Message selectByPrimaryKey(Short stayId);

    int updateByPrimaryKeySelective(Stay_Message record);

    int updateByPrimaryKey(Stay_Message record);
    
    List<StayMessage> selectStayMessageByUserId(Integer userId);
    
    Integer selectTotalCountById(Short userId);

	List selectStayMessageByPage(Short userId, Integer dbFromIndex, int num);
	
	int insertStayMessageMore(List<Stay_Message> stayMessageList);
	
	/**
	 * 批量删除留言
	 * @param list
	 * @return
	 */
	int batchDeleteStayMessage(List stayId);
}